package design.mode.procedure.mysql.service.impl;

import design.mode.procedure.mysql.bean.Product;
import design.mode.procedure.mysql.productdao.ProductMapper;
import design.mode.procedure.mysql.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("productService")
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductMapper productMapper;
    @Override
    public void queryProductInfo(int product) {
         productMapper.queryProductInfo(product);
    }
    @Override
    public List queryMarketPriceResult() {
        return productMapper.queryMarketPriceResult();
    }
}
